package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * @author RJ
 * @date 2022/9/13 15:48
 */
/*
    虫害一览
 */
@TableName("pest_info")
public class PestBean {
    //虫害id
    @TableId(value = "pest_id", type = IdType.AUTO)
    private Integer pestId;
    //名称
    @TableField("pest_name")
    private String pestName;
    //寄主
    @TableField("pest_host")
    private String pestHost;
    //繁殖
    @TableField("pest_breed")
    private String pestBreed;
    //天敌
    @TableField("pest_sentinel")
    private String pestSentinel;
    //幼虫图片
    @TableField("pest_larva_pic")
    private String pestLarvaPic;
    //成虫图片
    @TableField("pest_adult_pic")
    private String pestAdultPic;
    //防治措施
    @TableField("pest_control")
    private String pestControl;
    //主要危害
    @TableField("pest_main_harm")
    private String pestMainHarm;

    public PestBean() {
    }

    public PestBean(String pestName, String pestHost, String pestBreed, String pestSentinel, String pestLarvaPic, String pestAdultPic, String pestControl, String pestMainHarm) {
        this.pestName = pestName;
        this.pestHost = pestHost;
        this.pestBreed = pestBreed;
        this.pestSentinel = pestSentinel;
        this.pestLarvaPic = pestLarvaPic;
        this.pestAdultPic = pestAdultPic;
        this.pestControl = pestControl;
        this.pestMainHarm = pestMainHarm;
    }

    public Integer getPestId() {
        return pestId;
    }

    public void setPestId(Integer pestId) {
        this.pestId = pestId;
    }

    public String getPestName() {
        return pestName;
    }

    public void setPestName(String pestName) {
        this.pestName = pestName;
    }

    public String getPestHost() {
        return pestHost;
    }

    public void setPestHost(String pestHost) {
        this.pestHost = pestHost;
    }

    public String getPestBreed() {
        return pestBreed;
    }

    public void setPestBreed(String pestBreed) {
        this.pestBreed = pestBreed;
    }

    public String getPestSentinel() {
        return pestSentinel;
    }

    public void setPestSentinel(String pestSentinel) {
        this.pestSentinel = pestSentinel;
    }

    public String getPestLarvaPic() {
        return pestLarvaPic;
    }

    public void setPestLarvaPic(String pestLarvaPic) {
        this.pestLarvaPic = pestLarvaPic;
    }

    public String getPestAdultPic() {
        return pestAdultPic;
    }

    public void setPestAdultPic(String pestAdultPic) {
        this.pestAdultPic = pestAdultPic;
    }

    public String getPestControl() {
        return pestControl;
    }

    public void setPestControl(String pestControl) {
        this.pestControl = pestControl;
    }

    public String getPestMainHarm() {
        return pestMainHarm;
    }

    public void setPestMainHarm(String pestMainHarm) {
        this.pestMainHarm = pestMainHarm;
    }

    @Override
    public String toString() {
        return "PestBean{" +
                "pestId=" + pestId +
                ", pestName='" + pestName + '\'' +
                ", pestHost='" + pestHost + '\'' +
                ", pestBreed='" + pestBreed + '\'' +
                ", pestSentinel='" + pestSentinel + '\'' +
                ", pestLarvaPic='" + pestLarvaPic + '\'' +
                ", pestAdultPic='" + pestAdultPic + '\'' +
                ", pestControl='" + pestControl + '\'' +
                ", pestMainHarm='" + pestMainHarm + '\'' +
                '}';
    }
}
